import HomeHttp from '../../../../models/HomeHttp.js';
import MovieItem from '../../components/MovieItem.vue';

export default {
  data() {
    return {
      movies: [],
    };
  },
  async mounted() {
    var path = this.$route.path;
    var result = await HomeHttp.getMovie(path);
    /* console.log(result); */
    this.movies = result.data.result;
    /* console.log(this.movies); */
  },
  components: {
    MovieItem,
  },
};
